<script setup lang="ts">
import { Table, TableColumn } from '@idmy/ui'
import { apiInjectionKey } from '@idmy/core'
provide(apiInjectionKey, undefined)
</script>

<template>
  <Table>
    <TableColumn field="ticketCode" title="发票代码" :width="100" />
    <TableColumn field="ticketNo" title="发票号码" :width="120" />
    <TableColumn field="checkCode" title="校验码" :width="100" />
    <TableColumn field="ticketAt" title="开票日期" :width="120" type="Date" sortable />
    <TableColumn field="outpatient.no" title="门诊号" :width="140" tooltip ellipsis />
    <TableColumn field="bizNo" title="业务号" :width="150" tooltip ellipsis />
    <TableColumn field="bizType" title="业务类型" :width="120" format="Enum" params="BizType" />
    <TableColumn field="otherBizTypeCode" title="其他业务类型代码" :width="180" format="Enum" params="OtherBizType" />
    <TableColumn field="gender" title="性别" :width="80" format="Enum" params="Gender" />
    <TableColumn field="name" title="姓名" :width="100" />
    <TableColumn field="age" title="年龄" :width="80" />
    <TableColumn field="amt" title="金额" :width="100" align="right" sortable />
    <TableColumn field="cardNo" title="身份证" :width="150" tooltip ellipsis />
    <TableColumn field="mobile" title="手机号" :width="150" />
    <TableColumn field="email" title="邮箱" :width="180" />
    <TableColumn field="openId" title="开放ID" :width="150" tooltip ellipsis />
    <TableColumn field="wechatOrderNo" title="微信订单号" :width="150" tooltip ellipsis />
    <TableColumn field="creator" title="开票人" :width="120" />
    <TableColumn field="no" title="流水号" :width="150" tooltip ellipsis />
    <TableColumn field="createdAt" title="创建日期" :width="170" type="Datetime" sortable />
    <TableColumn field="updatedAt" title="更新日期" :width="170" type="Datetime" sortable />
  </Table>
</template>
